package com.umeng.analytics.pro;

import android.text.TextUtils;

import java.util.Iterator;
import java.util.List;

public class n {
    static class a {
        private static final n a = new n();

        private a() {

        }

        static n a() {
            return a;
        }
    }

    private n() {

    }

    public static n a() {
        return a.a();
    }

    public boolean a(List arg6) {
        boolean v2 = true;
        if (arg6 == null) {
            v2 = false;
        } else if (arg6.size() > 1) {
            int v1 = 1;
            while (v1 < arg6.size()) {
                if (TextUtils.isEmpty((CharSequence) arg6.get(v1))) {
                    v2 = false;
                } else if (!this.a((String) arg6.get(v1), 48)) {
                    v2 = false;
                } else {
                    ++v1;
                    continue;
                }

                return v2;
            }
        }

        return v2;
    }

    public boolean a(String arg5) {
        boolean v0 = true;
        if (!"".equals(arg5)) {
            if (arg5 == null) {
                v0 = false;
            } else {
                if (arg5.getBytes().length < 160 && (this.a(arg5, 48))) {
                    return v0;
                }

                v0 = false;
            }
        }

        return v0;
    }

    private boolean a(String arg4, int arg5) {
        boolean v1 = false;
        int v0 = 0;
        while (true) {
            if (v0 >= arg4.length()) {
                return true;
            } else if (arg4.charAt(v0) >= arg5) {
                ++v0;
                continue;
            }

            return v1;
        }
    }

    public boolean b(String arg4) {
        boolean v0 = false;
        if (!TextUtils.isEmpty(((CharSequence) arg4)) && arg4.length() < 16 && (this.a(arg4, 48))) {
            v0 = true;
        }

        return v0;
    }

    public boolean b(List arg5) {
        boolean v2 = false;
        if (arg5 != null && arg5.size() > 0) {
            Iterator v3 = arg5.iterator();
            int v1;
            for (v1 = 0; v3.hasNext(); v1 = ((String) v3.next()).getBytes().length + v1) {
            }

            if (v1 < 256) {
                v2 = true;
            }
        }

        return v2;
    }

    public int b() {
        return 8;
    }

    public int c() {
        return 128;
    }

    public int d() {
        return 512;
    }
}

